<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: /Users/wangxiao/git/emp-toolkit/emp-tool/utils/utils.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('utils_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">utils.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;string&gt;</code><br />
<code>#include &quot;<a class="el" href="utils_2block_8h_source.html">block.h</a>&quot;</code><br />
<code>#include &lt;sstream&gt;</code><br />
<code>#include &lt;bitset&gt;</code><br />
<code>#include &lt;cstddef&gt;</code><br />
<code>#include &lt;gmp.h&gt;</code><br />
<code>#include &quot;<a class="el" href="config_8h_source.html">config.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="prg_8h_source.html">prg.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="utils_8hpp_source.html">utils.hpp</a>&quot;</code><br />
</div>
<p><a href="utils_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aa25ab28a33962a3b7dcae17b5319d156"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#aa25ab28a33962a3b7dcae17b5319d156">macro_xstr</a>(a)&#160;&#160;&#160;<a class="el" href="utils_8h.html#a9d72e6bb5f37a47aa65fb77e35766bc3">macro_str</a>(a)</td></tr>
<tr class="separator:aa25ab28a33962a3b7dcae17b5319d156"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d72e6bb5f37a47aa65fb77e35766bc3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a9d72e6bb5f37a47aa65fb77e35766bc3">macro_str</a>(a)&#160;&#160;&#160;#a</td></tr>
<tr class="separator:a9d72e6bb5f37a47aa65fb77e35766bc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad17d551e31d1828c68acf40684849b7e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#ad17d551e31d1828c68acf40684849b7e">PUBLIC</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:ad17d551e31d1828c68acf40684849b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a856092a6a37aac1b54145ea9e3e03364"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a856092a6a37aac1b54145ea9e3e03364">ALICE</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a856092a6a37aac1b54145ea9e3e03364"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a752943cc4f3c7be1ba2c7edc1b61f8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a8a752943cc4f3c7be1ba2c7edc1b61f8">BOB</a>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a8a752943cc4f3c7be1ba2c7edc1b61f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3c18d81c8eb95ebe4e6c02aee74bad69"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3c18d81c8eb95ebe4e6c02aee74bad69"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="utils_8h.html#a3c18d81c8eb95ebe4e6c02aee74bad69">delete_array_null</a> (T *ptr)</td></tr>
<tr class="separator:a3c18d81c8eb95ebe4e6c02aee74bad69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97aa9c5726c3f1af0092e3d97e6d4c4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a97aa9c5726c3f1af0092e3d97e6d4c4a">error</a> (const char *s, int line=0, const char *file=nullptr)</td></tr>
<tr class="separator:a97aa9c5726c3f1af0092e3d97e6d4c4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b7d62b352ef39bda63e04aeb2ebebfe"><td class="memTemplParams" colspan="2">template&lt;class... Ts&gt; </td></tr>
<tr class="memitem:a9b7d62b352ef39bda63e04aeb2ebebfe"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="utils_8h.html#a9b7d62b352ef39bda63e04aeb2ebebfe">run_function</a> (void *function, const Ts &amp;... args)</td></tr>
<tr class="separator:a9b7d62b352ef39bda63e04aeb2ebebfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b5e7c01da1943e271ef5a33d5ff3b82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a7b5e7c01da1943e271ef5a33d5ff3b82">parse_party_and_port</a> (char **arg, int *<a class="el" href="input-check-malicious_8cpp.html#aefdd5aa9f02e7cb8d21ea22b0e6b03df">party</a>, int *<a class="el" href="input-check-malicious_8cpp.html#a63c89c04d1feae07ca35558055155ffb">port</a>)</td></tr>
<tr class="separator:a7b5e7c01da1943e271ef5a33d5ff3b82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1972288714b6117237f941ba3431b53"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#ad1972288714b6117237f941ba3431b53">Party</a> (int p)</td></tr>
<tr class="separator:ad1972288714b6117237f941ba3431b53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab09a9159a26e2abf2e3f801962c44b62"><td class="memTemplParams" colspan="2">template&lt;typename T  = uint64_t&gt; </td></tr>
<tr class="memitem:ab09a9159a26e2abf2e3f801962c44b62"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="utils_8h.html#ab09a9159a26e2abf2e3f801962c44b62">m128i_to_string</a> (const __m128i var)</td></tr>
<tr class="separator:ab09a9159a26e2abf2e3f801962c44b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac07ede322f50567d253ac432712e9be3"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#ac07ede322f50567d253ac432712e9be3">wallClock</a> ()</td></tr>
<tr class="separator:ac07ede322f50567d253ac432712e9be3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7606723ef1db72ef21f3eb67833eb9fa"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a7606723ef1db72ef21f3eb67833eb9fa">timeStamp</a> ()</td></tr>
<tr class="separator:a7606723ef1db72ef21f3eb67833eb9fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83478914b39450a9a3c429dbbfa215a9"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a83478914b39450a9a3c429dbbfa215a9"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="utils_8h.html#a83478914b39450a9a3c429dbbfa215a9">bool_to_int</a> (const bool *data, size_t len=0)</td></tr>
<tr class="separator:a83478914b39450a9a3c429dbbfa215a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a9d236e5507b50ba79dc713e9fd1874"><td class="memItemLeft" align="right" valign="top"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a6a9d236e5507b50ba79dc713e9fd1874">bool_to128</a> (const bool *data)</td></tr>
<tr class="separator:a6a9d236e5507b50ba79dc713e9fd1874"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af47b1fac18359b1ee0a46fb69921378b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#af47b1fac18359b1ee0a46fb69921378b">int64_to_bool</a> (bool *data, uint64_t input, int length)</td></tr>
<tr class="separator:af47b1fac18359b1ee0a46fb69921378b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5627141265c9009acfd0fb533ee6c345"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a5627141265c9009acfd0fb533ee6c345">hex_to_binary</a> (std::string hex)</td></tr>
<tr class="separator:a5627141265c9009acfd0fb533ee6c345"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a474d9fc6a062e257079dbe9b9aff2502"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a474d9fc6a062e257079dbe9b9aff2502">change_base</a> (string str, int old_base, int new_base)</td></tr>
<tr class="separator:a474d9fc6a062e257079dbe9b9aff2502"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1365290cf96c96e6d3271bc3f4e913e"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#ab1365290cf96c96e6d3271bc3f4e913e">dec_to_bin</a> (const string &amp;dec)</td></tr>
<tr class="separator:ab1365290cf96c96e6d3271bc3f4e913e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e6523544fd1cfc559780a5a49ada954"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a0e6523544fd1cfc559780a5a49ada954">bin_to_dec</a> (const string &amp;bin2)</td></tr>
<tr class="separator:a0e6523544fd1cfc559780a5a49ada954"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a856092a6a37aac1b54145ea9e3e03364"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a856092a6a37aac1b54145ea9e3e03364">&sect;&nbsp;</a></span>ALICE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ALICE&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8a752943cc4f3c7be1ba2c7edc1b61f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a752943cc4f3c7be1ba2c7edc1b61f8">&sect;&nbsp;</a></span>BOB</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BOB&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9d72e6bb5f37a47aa65fb77e35766bc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d72e6bb5f37a47aa65fb77e35766bc3">&sect;&nbsp;</a></span>macro_str</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define macro_str</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a</td><td>)</td>
          <td>&#160;&#160;&#160;#a</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa25ab28a33962a3b7dcae17b5319d156"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa25ab28a33962a3b7dcae17b5319d156">&sect;&nbsp;</a></span>macro_xstr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define macro_xstr</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="utils_8h.html#a9d72e6bb5f37a47aa65fb77e35766bc3">macro_str</a>(a)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad17d551e31d1828c68acf40684849b7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad17d551e31d1828c68acf40684849b7e">&sect;&nbsp;</a></span>PUBLIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PUBLIC&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a0e6523544fd1cfc559780a5a49ada954"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e6523544fd1cfc559780a5a49ada954">&sect;&nbsp;</a></span>bin_to_dec()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string bin_to_dec </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>bin2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a6a9d236e5507b50ba79dc713e9fd1874"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a9d236e5507b50ba79dc713e9fd1874">&sect;&nbsp;</a></span>bool_to128()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> bool_to128 </td>
          <td>(</td>
          <td class="paramtype">const bool *&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a83478914b39450a9a3c429dbbfa215a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83478914b39450a9a3c429dbbfa215a9">&sect;&nbsp;</a></span>bool_to_int()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T bool_to_int </td>
          <td>(</td>
          <td class="paramtype">const bool *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a474d9fc6a062e257079dbe9b9aff2502"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a474d9fc6a062e257079dbe9b9aff2502">&sect;&nbsp;</a></span>change_base()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string change_base </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>old_base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>new_base</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab1365290cf96c96e6d3271bc3f4e913e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1365290cf96c96e6d3271bc3f4e913e">&sect;&nbsp;</a></span>dec_to_bin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string dec_to_bin </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>dec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3c18d81c8eb95ebe4e6c02aee74bad69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c18d81c8eb95ebe4e6c02aee74bad69">&sect;&nbsp;</a></span>delete_array_null()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void delete_array_null </td>
          <td>(</td>
          <td class="paramtype">T *&#160;</td>
          <td class="paramname"><em>ptr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a97aa9c5726c3f1af0092e3d97e6d4c4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97aa9c5726c3f1af0092e3d97e6d4c4a">&sect;&nbsp;</a></span>error()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void error </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em> = <code>nullptr</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5627141265c9009acfd0fb533ee6c345"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5627141265c9009acfd0fb533ee6c345">&sect;&nbsp;</a></span>hex_to_binary()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string hex_to_binary </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>hex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af47b1fac18359b1ee0a46fb69921378b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af47b1fac18359b1ee0a46fb69921378b">&sect;&nbsp;</a></span>int64_to_bool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void int64_to_bool </td>
          <td>(</td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab09a9159a26e2abf2e3f801962c44b62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab09a9159a26e2abf2e3f801962c44b62">&sect;&nbsp;</a></span>m128i_to_string()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T  = uint64_t&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string m128i_to_string </td>
          <td>(</td>
          <td class="paramtype">const __m128i&#160;</td>
          <td class="paramname"><em>var</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7b5e7c01da1943e271ef5a33d5ff3b82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b5e7c01da1943e271ef5a33d5ff3b82">&sect;&nbsp;</a></span>parse_party_and_port()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void parse_party_and_port </td>
          <td>(</td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>party</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>port</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad1972288714b6117237f941ba3431b53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1972288714b6117237f941ba3431b53">&sect;&nbsp;</a></span>Party()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string Party </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9b7d62b352ef39bda63e04aeb2ebebfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b7d62b352ef39bda63e04aeb2ebebfe">&sect;&nbsp;</a></span>run_function()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class... Ts&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void run_function </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Ts &amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7606723ef1db72ef21f3eb67833eb9fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7606723ef1db72ef21f3eb67833eb9fa">&sect;&nbsp;</a></span>timeStamp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t timeStamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac07ede322f50567d253ac432712e9be3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac07ede322f50567d253ac432712e9be3">&sect;&nbsp;</a></span>wallClock()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double wallClock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_eec959d81771dc8b1a750b834e1341eb.html">emp-tool</a></li><li class="navelem"><a class="el" href="dir_363cbed62d1567d90b8cbb6bda69428f.html">utils</a></li><li class="navelem"><a class="el" href="utils_8h.html">utils.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
